{% extends "../master.html" %}

{% block header %}
    {% include "../header.html" %}
{% endblock %}

{% block page %}
    <h1>Yams</h1>
    <h3>{{ player.game.name }}</h3>
    <div class="score">
        <table>
            <tr>
                <th colspan="17">Scores<th>
            </tr>
            <tr>
                <td></td>
                {% for s in score %}
                <th class="standard">
                    {{ s.name }}
                </th>
                {% endfor %}
            </tr>
            {% for p in players %}
            <tr>
                <th class="standard">
                    {{ p.name }}
                </th>
                <td>
                    {% ifnotequal p.score.one -1 %}
                        {{ p.score.one }}
                    {% else %}
                        0
                    {% endifnotequal %}
                </td>
                <td>
                    {% ifnotequal p.score.two -1 %}
                        {{ p.score.two }}
                    {% else %}
                        0
                    {% endifnotequal %}
                </td>
                <td>
                    {% ifnotequal p.score.three -1 %}
                        {{ p.score.three }}
                    {% else %}
                        0
                    {% endifnotequal %}
                </td>
                <td>
                    {% ifnotequal p.score.four -1 %}
                        {{ p.score.four }}
                    {% else %}
                        0
                    {% endifnotequal %}
                </td>
                <td>
                    {% ifnotequal p.score.five -1 %}
                        {{ p.score.five }}
                    {% else %}
                        0
                    {% endifnotequal %}
                </td>
                <td>
                    {% ifnotequal p.score.six -1 %}
                        {{ p.score.six }}
                    {% else %}
                        0
                    {% endifnotequal %}
                </td>
                <th class=total>
                    {% if p.score.total_one %}
                        {{ p.score.total_one }}
                    {% endif %}
                </th>
                <td>
                    {% ifnotequal p.score.three_of_kind -1 %}
                        {{ p.score.three_of_kind }}
                    {% else %}
                        0
                    {% endifnotequal %}
                </td>
                <td>
                    {% ifnotequal p.score.four_of_kind -1 %}
                        {{ p.score.four_of_kind }}
                    {% else %}
                        0
                    {% endifnotequal %}
                </td>
                <td>
                    {% ifnotequal p.score.full -1 %}
                        {{ p.score.full }}
                    {% else %}
                        0
                    {% endifnotequal %}
                </td>
                <td>
                    {% ifnotequal p.score.small_suite -1 %}
                        {{ p.score.small_suite }}
                    {% else %}
                        0
                    {% endifnotequal %}
                </td>
                <td>
                    {% ifnotequal p.score.big_suite -1 %}
                        {{ p.score.big_suite }}
                    {% else %}
                        0
                    {% endifnotequal %}
                </td>
                <td>
                    {% ifnotequal p.score.lucky -1 %}
                        {{ p.score.lucky }}
                    {% else %}
                        0
                    {% endifnotequal %}
                </td>
                <td>
                    {% ifnotequal p.score.yams -1 %}
                        {{ p.score.yams }}
                    {% else %}
                        0
                    {% endifnotequal %}
                </td>
                <th class="total">
                    {% if p.score.total_two %}
                        {{ p.score.total_two }}
                    {% endif %}
                </th>
                <th class="total-all">
                    {% if p.score.total_all %}
                        {{ p.score.total_all }}
                    {% endif %}
                </th>
            </tr>
            {% endfor %}
        </table>
    </div>
{% endblock %}

{% block footer %}
    {% include "../footer.html" %}
{% endblock %}
